#include "door.h"

door::door()
{

}

void door::init(int row, int col, int type)
{
    _row=row;
    _col=col;
    isOpen=false;
    _type=type;
    switch(type){
    case 51://黄门
        Door.load("://images/3.png");
        break;
    case 52://蓝门
        Door.load("://images/5.png");
        break;
    case 53://红门
        Door.load("://images/1.png");
        break;
    case 54://石门
        Door.load("://images/29.png");
        break;
    case 55:
    case 56://不可打开/可打开的铁门
        Door.load("://images/33.png");
        break;
    }
}
